package com.tsingteng.cosfun.ui.message.uploadreportfragment;

import com.tsingteng.cosfun.bean.UploadReportBean;
import com.tsingteng.cosfun.bean.VideoSignBean;
import com.tsingteng.cosfun.callback.RxObserver;
import com.tsingteng.cosfun.http.RxSchedulers;
import com.tsingteng.cosfun.mvp.module.BaseModel;

import java.util.List;

/**
 * 上传举报信息M层
 * 常胜
 * 2018.8.22
 * */
public class UploadReportModel extends BaseModel implements IUploadReportModel {
    @Override
    public void getUploadReport(String report_id, long workId, int type, String msg, String image1,String image2,String image3,String image4, RxObserver<UploadReportBean> rxObserver) {
            doRxRequest().uploadReport(String.valueOf(report_id),workId,type,msg,image1,image2,image3,image4).compose(RxSchedulers.io_main()).subscribe(rxObserver);
    }

    @Override
    public void getUploadSeven(RxObserver<VideoSignBean> rxObserver) {
        doRxRequest().getSignaTure("6").compose(RxSchedulers.io_main()).subscribe(rxObserver);
    }
}
